package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 归还和物品 中间表
 * </p>
 *
 * @author 肖守凯
 * @since 2021-11-08
 */
@TableName("return_goods")
@ApiModel(value="ReturnGoods对象", description="归还和物品 中间表")
@Data
public class ReturnGoods extends Model<ReturnGoods> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "物品id")
    @TableField("goods_id")
    private String goodsId;

    @ApiModelProperty(value = "归还单号id")
    @TableField("return_id")
    private Integer returnId;


    //  物品信息
    @ApiModelProperty(value = "申领物品集合")
    @TableField(exist = false)
    private Goods goods;


}
